/**
 * 与后端的foodInfo模块对接
 */
import axiosInstance from "../axiosInstance";
const foodInfo = {
    getListByPage({pageIndex,food_name,category_name}){
        return axiosInstance.get("/foodInfo/getListByPage",{
            params:{
                pageIndex,food_name,category_name
            }
        })
    },
    findById(id){
        return axiosInstance.get("/foodInfo/findById",{
            params:{
                id
            }
        })
    }
}

export default foodInfo;